import com.zzptc.easyshop.db.MysqlDB;
import com.zzptc.easyshop.vo.Users;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;

public class Test {

    public static void main(String[] args) {
        Statement stat;
        //构建一个学生对象，保存数据
        System.out.println(123);
        Users u = new Users();
        u.setEu_user_id(3);
        u.setEu_user_name("test");
        u.setEu_password("test");
        u.setEu_sex("男");
        u.setEu_status(1);
        MysqlDB db = new MysqlDB();
        try {
            System.out.println(db.getConn().isClosed());
            stat = db.getConn().createStatement();
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}
